package me.zhengjie.server;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import me.zhengjie.dao.NoMaterialsDao;
import me.zhengjie.dao.OutBoundSotringDao;
import me.zhengjie.dao.OutBoundTaskDao;
import me.zhengjie.utils.PageResult;
import me.zhengjie.vo.OutBoundTaskToWcsVo;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
* @author hws
* @description 针对表【iws_out_bound_task(出库任务)】的数据库操作Service
* @createDate 2025-06-10 08:54:56
*/
public interface OutBoundTaskService extends IService<OutBoundTaskDao> {

    PageResult<OutBoundTaskDao> queryAll(OutBoundTaskDao criteria, Page<OutBoundTaskDao> page);

    List<OutBoundTaskDao> queryAll(OutBoundTaskDao criteria);

    void download(List<OutBoundTaskDao> all, HttpServletResponse response) throws IOException;

    void add(OutBoundTaskDao resources);

    void startOutBoundTask(OutBoundTaskDao outBoundTaskDao) throws InterruptedException;

    void sendToWcs(OutBoundTaskToWcsVo outBoundTaskToWcsVo) throws IOException;

    OutBoundSotringDao outboundSort(String outBoundCode, String containerCode,String code,Double weight) throws IOException;

    void lack(String materialCode, String taskId,Double weight);
}
